<%@ page contentType="text/html; charset=UTF-8"%>
<html>
<head>
<title>APEP-集中管采购系统</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<!--<LINK href="css/css.css" type=text/css rel=stylesheet>-->
<LINK href="<%=response.encodeURL(request.getContextPath()+"/css/caigouxitong.css")%>" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.style3 {
    font-size: 10pt;
    color: #000000;
    font-weight: bold;
}
-->
</style>
</head>
<STYLE type="text/css">
<!--
table {
    font-size: 9pt
}

body {
    font-size: 9pt
}

a:link {
    text-decoration: none;
    color: #0000ff
}

a:visited {
    color: #000000;
    color: #0000ff
}

a:hover {
    text-decoration: underline;
    color: #FF0000
}

a:active {
    text-decoration: underline;
    color: #CC0000
}
-->
</STYLE>
<%
    String message = (String)request.getAttribute("message");
    if (message == null || message.trim().equals("")) {
        message = "操作执行成功";
    }
    String action = (String) request.getAttribute("action");
    String backstep = request.getAttribute("backstep")==null?"-1":(String)request.getAttribute("backstep");
    
%>
<SCRIPT language="javascript">
function process(){
        <%if(action!=null){%>
            form1.action = "<%=response.encodeURL(request.getContextPath() + "/" + action)%>";
            form1.submit();
        <%}else{%>
            history.go(<%=backstep%>);
        <%}%>   
}
function showstar(){

if  (document.all.starflag.value) {
var startype = document.all.starflag.value.substring(0,1);
var starname ;

switch (parseInt(startype)) {
case 3 : 
    starname = "images/golden_star.gif";
    break;
case 2 : 
    starname = "images/silver_star.gif";
    break;
case 1 : 
    starname = "images/copper_star.gif";
    break;
default : 
    starname = "images/blank.gif";
}

var starnum = document.all.starflag.value.substring(1,2);


eval("var demoname = new Image();");
demoname.src = starname;  

for (n =0; n<starnum ;n++ ) {
document["star"+n].src = eval("demoname.src");   
}
}
}
function window.onbeforeunload(){
   try{
    window.opener.location.reload();
    }catch(e){}
}
</SCRIPT>
<BODY onLoad="showstar();" background="<%=response.encodeURL(request.getContextPath()+"/images/back.jpg")%>">
<form name="form1" method="post">
<CENTER>

<TABLE border="0" cellspacing="0" cellpadding="0" width="100%" height="90%" style="border-collapse: collapse">
  <TR>
    <TD width="100%" height="248" valign="top"><BR>
    <BR>
    <BR>
    <BR>
    <BR>
    <BR>
    <BR>
    <DIV align="center">
    <TABLE class=bg_table border="0" width="30%" cellspacing="1" cellpadding="2" height="140">
      <INPUT name="starflag" type="hidden" value="">
      <TR class="bg_column">
        <TD height="25">
        <div align="center"><span class="style3">操作成功</span></div>
        </TD>
      </TR>


      <tr class="bg_row_odd">
        <td height="102">
        <p></p>
        <p>&nbsp;&nbsp;&nbsp;&nbsp;<img src="<%=response.encodeURL(request.getContextPath() + "/images/success.gif")%>" width="36" height="33">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=message%></p>
        <% if(!backstep.equals("0")) {%>
            <p align="center"><input type="button" value="返回" onClick="process()" class="kuang"></p>
        <%} else {%>
            <p align="center"><input type="button" value="关闭" onClick="window.close()" class="kuang"></p>
        <%}%>
        </td>
      </tr>
    </TABLE>
    </DIV>
    </TD>
  </TR>
</TABLE>
</CENTER>
</form>
</body>

</html>